FUNCTION
load_variables
function load_variables(op_count: integer): map<text, gtv>Loads the current value of all possible variables that can appear in an auth descriptor rule. This function thus loads:
- the number of operations the auth descriptor has performed, including the one we're
currently validating for (
op_count); - the block height of the block being built (
block_height); - the timestamp of the last block (
block_time).
Can only be called from an operation.
Parameters
- op_count — the number of operations the auth descriptor has performed, as stored in the
ctrproperty.
© 2024 Chromia